package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dtos.LoginDto;
import com.itheima.reggie.entity.User;

/**
 * @author ghy
 * @version v1.0
 * create on 2022/11/21 17:17
 */
public interface UserService extends IService<User> {

    /**
     * 登录
     * @param dto 登录Dto
     * @param code 发送的验证码
     * @return
     */
    Long login(LoginDto dto, String code);

}
